#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>

using namespace std;

int main()
{
    int n;
    int f[50];
    f[1] = 0, f[2] = 1;
    cin >> n;
    if (n == 1) cout << 0 << " ";
    if (n >= 2) cout << 0 << " " << 1 << " ";
    for (int i = 3; i <= n; ++i)
    {
        f[i] = f[i - 1] + f[i - 2];
        cout << f[i] << " ";
    }
    return 0;
}